# -*- coding=utf-8 -*-

redis_local = {
    'host': 'localhost',
    # 'password': 'Bt$2018F1509',
    'port': '6379',
    # 'db': 15
}

redis_server = {
    'host': '47.254.26.182',
    'password': 'Bt$2018F1509',
    'port': '6379',
    # 'db': 15
}

# 镜像数据库，配置
database_config = {
    'host': 'localhost',
    'port': 3306,
    'user': 'root',
    'password': '123456',
    'charset': 'utf8',
    # 'database': 'bbs'
}

# 入库数据库，配置
online_database_config = {
    'host': 'localhost',
    'port': 3306,
    'user': 'root',
    'password': '123456',
    'charset': 'utf8',
    # 'database': 'autohome_bbs',
}

# topic 数据库，配置
db_168_3306_config = {
    'host': '192.169.0.168',
    'port': 3306,
    'user': 'dev',
    'password': 'SoCarDev2017',
    'charset': 'utf8',
    'database': 'autohome_syn',
}

# topic 数据库，配置
db_168_3307_config = {
    'host': '192.169.0.168',
    'port': 3307,
    'user': 'dev',
    'password': 'SoCarDev2017',
    'charset': 'utf8',
    'database': 'autohome_mirror',
}

# 镜像数据库，名称
database_name = 'autohome_mirror'

# 入库数据库，名称
online_database_name = 'autohome_bbs'

# syn 数据库，名称
syn_database_name = 'autohome_syn'

# 替换文字的数据库
carvoice_autohome_database_name = 'carvoice_autohome'

# 中间缓存表名
bbs_mirror_temp_table_name = 'bbs_mirror_temp'

bbs_use_proxy = False
proxy_address = 'http://127.0.0.1:8000/'

process_name = 'mac_lgq'

# 47.254.26.182服务器
bt_server = {
    'port': 3305,
    'host': 'bitoolnews.mysql.rds.aliyuncs.com',
    'user': 'bitool',
    'password': 'Bt$2018F1509',
    'charset': 'utf8',
    'database': 'bt_news'
}

# 本地
bt_local = {
    'host': 'localhost',
    'port': 3306,
    'user': 'root',
    'password': '123456',
    'charset': 'utf8',
    'database': 'bt_news'
}